#ifndef SEND_H
#define SEND_H

#include "wiringPiSPI.h"
#include <cstdlib>
#include <stdio.h>
#include <time.h>

#define SPI_SETUP_ERROR -1
#define SPI_SETUP_SUCCESS 0
#define SEND_MOTOR_STOP 0xc0

unsigned char SPIInit();
unsigned char send(unsigned char inst);
bool resetSPI(int numAttempts = -1);

#endif
